<!DOCTYPE html>
<html >
    <head>
        <title><?php echo isset($this->pageTitle) ? $this->pageTitle : Yii::app()->name; ?></title>

        <?php $this->renderPartial('/layouts/header_inc'); ?>

    </head>
    <body>
    <center>
        <div id="main_body">

            <div id="top">     <!-- begin top -->                 
                <div class="banner" type="33">
                    <center>
                        <?php
                        $v = Settings::model()->findByAttributes(array('key' => 'banner_logo'));
//
                        if (strpos($v->urlPhoto, '.swf') > 0) :
                            ?>
                            <?php
                            echo OPD_Html_tools::flash(array(
                                'width' => '1004',
                                'height' => '287',
                                'src' => $v->urlPhoto,
                                'wmode' => 'opaque'
                            ));
                            ?>

                        <?php else : ?>
                            <?php
                            echo CHtml::image($v->urlPhoto, '', array('height' => 287, 'width' => 1004));
                        endif;
                        ?>
                    </center>
                </div>
                <div class="menu">
                    <ul>
                        <li>
                            <a href="http://thanglongco.vn/"><span class="span">
                                    <b> Trang chủ</b></span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo Yii::app()->createUrl('site/AboutUs') ?>">
                                <span class="span"><b> Giới thiệu</b></span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo Yii::app()->createUrl('site/News') ?>">
                                <span class="span"><b> Tin tức &amp; Tư vấn</b></span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo Yii::app()->createUrl('site/Video'); ?>">
                                <span class="span"><b> Video sản phẩm</b></span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo Yii::app()->createUrl('site/Warranty'); ?>">
                                <span class="span"><b> Bảo hành </b></span>
                            </a>
                        </li>

                        <li>
                            <a href="<?php echo Yii::app()->createUrl('/site/ContactUs'); ?>">
                                <span class="span"><b> Liên hệ</b></span>
                            </a>
                        </li>
                    </ul>

                </div>

            </div>            
            <br>
            <center>

            </center> 
            <div id="center">
                <div class="main_l">
                    <?php $this->renderPartial('/layouts/main_left'); ?>
                </div>
                <div class="main_c">
                    <script>
                        (function() {
                            var cx = '013364895308778110463:1e1wemgchac';
                            var gcse = document.createElement('script');
                            gcse.type = 'text/javascript';
                            gcse.async = true;
                            gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
                                    '//www.google.com/cse/cse.js?cx=' + cx;
                            var s = document.getElementsByTagName('script')[0];
                            s.parentNode.insertBefore(gcse, s);
                        })();
                    </script>
                    <gcse:search></gcse:search>
                    <?php echo $content; ?>
                </div>
                <div class="main_r">
                    <?php $this->renderPartial('/layouts/main_right'); ?>
                </div>

            </div>

            <?php $this->renderPartial('/layouts/footer'); ?>

        </div> <!-- end main body -->
    </center>
</body>
</html>